<table class="ptop" border="0" cellpadding="4" cellspacing="0" width="100%">
     <thead>
        <tr class="nobg">
            <th colspan="3"><h2><?$print_com_name?></h2></th>
        </tr>
        <tr class="nobg">
            <th colspan="3"><h1><?$page_title?></h1></th>
        </tr>
    </thead>
    <tbody>
        <tr>
                <td valign="top">仓库： &nbsp; <? $outbound.warehouse ?></td>
                <td width="15%" class="right">单号：</td>
                <td width="35%"><? $outbound.sno ?></td>
        </tr>
        <tr>
                <td>出库类型： &nbsp; <?= BoundHelper::type2txt($outbound.type) ?>
                        <{if $outbound.type==Bound::TYPE_LL}> (<{= ReviewerHelper::flow2txt($outbound.audit_flow)}>)<{/if}>
                </td>
                <td class="right">日 期：</td>
                <td><?= date('Y-m-d H:i', $outbound.addtime) ?></td>
        </tr>
    </tbody>
</table>

<table border=0 class="list pcontent" width="100%">
    <thead>
        <tr class="nobg">
                <th>编号</th>
                <th>材料名称</th>
                <th>品牌</th>
                <th>规格</th>
                <th>单位</th>
                <th>数量</th>
        <{if $outbound.type==Bound::TYPE_LL }>
                <th width="100">工单号</th>
                <th width="120">用途</th>
        <{else}>
                <th width="120">备注</th>
        <{/if}>
        </tr>
    </thead>
    <tbody>
<? $amount = 0; ?>
<{foreach item=ware from=$outbound.items}>
	<tr>
		<td><{$ware.sno}></td>
		<td><{$ware.name}></td>
		<td><{$ware.brand}></td>
		<td><{$ware.specific}></td>
		<td><{$ware.unit}></td>
		<td><div class="decimal"><{$ware.amount}></div></td>
<{if $outbound.type==Bound::TYPE_LL }>
		<td><div class="text"><{$ware.add_sno}></div></td>
<{/if}>
		<td><div class="text"><{$ware.remark}></div></td>
	</tr>
	<? $amount += $ware.amount ?>
<{/foreach}>
	<tr class="hl">
		<td>小计</td>
		<td>&nbsp;</td>
		<td>&nbsp;</td>
		<td>&nbsp;</td>
		<td>&nbsp;</td>
		<td><div class="decimal"><? $amount ?></div></td>
		<td>&nbsp;</td>
	</tr>
    </tbody>
</table>
